package com.zenithmind.chat;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.nio.charset.Charset;

/**
 * 聊天服务启动类
 */
@SpringBootApplication(scanBasePackages = {"com.zenithmind.chat", "com.zenithmind.common"})
@ComponentScan(basePackages = {"com.zenithmind"})
@EnableDiscoveryClient
@EnableTransactionManagement
@EnableAspectJAutoProxy
@MapperScan({"com.zenithmind.chat.mapper"})
public class AiChatServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(AiChatServiceApplication.class, args);
    }
}